package com.whjfxx.terminal.utils;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by b.c on 2022/2/24 9:48
 */
public class ImportUtil {




    @Data
    public static class ExcelImport {

        private HttpServletRequest request;

        private MultipartFile[] multipartFiles;

        public ExcelImport(HttpServletRequest request, MultipartFile[] multipartFiles) {
            this.request = request;
            this.multipartFiles = multipartFiles;
        }

        public ExcelImport(HttpServletRequest request, MultipartFile multipartFile) {
            this.request = request;
            this.multipartFiles = new MultipartFile[]{multipartFile};
        }

    }

}
